{port_env,
[{"win32","CFLAGS", "$CFLAGS -DMDB_MAXKEYSIZE=0 -DSQLITE_ENABLE_FTS5  -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_JSON1 -DSQLITE_DEFAULT_CACHE_SIZE=1000 -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0 -DSQLITE_DEFAULT_MEMSTATUS=0 -DNDEBUG=1"},
{"win32","ERL_LDFLAGS","Ws2_32.lib Advapi32.lib /DEBUG"},

{"darwin","CFLAGS", "$CFLAGS -g -DMDB_USE_ROBUST=0 -DMDB_MAXKEYSIZE=0 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_ENABLE_JSON1  -DSQLITE_DEFAULT_CACHE_SIZE=1000 -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0  -DSQLITE_DEFAULT_MEMSTATUS=0 -DNDEBUG=1 -finline-functions -fomit-frame-pointer -fno-strict-aliasing -Wmissing-prototypes -Wno-unused-function -O2 -arch x86_64 -std=c11  -mmacosx-version-min=10.7"},

{"linux","CFLAGS", "$CFLAGS -g -DMDB_USE_ROBUST=0 -DMDB_MAXKEYSIZE=0 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_ENABLE_JSON1 -DSQLITE_DEFAULT_CACHE_SIZE=1000 -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0  -DSQLITE_DEFAULT_MEMSTATUS=0 -DNDEBUG=1 -finline-functions -fomit-frame-pointer -fno-strict-aliasing -Wmissing-prototypes -Wno-unused-function -O2 -std=gnu99"}
]}.

{port_specs, [{"priv/actordb_driver_nif.so", ["c_src/actordb_driver_nif.c", "c_src/platform.c", "c_src/lfqueue.c","c_src/lz4.c", "c_src/mdb.c", "c_src/midl.c"]}]}.

{plugins, [pc]}.

{provider_hooks,
[
 {pre,
  [
   {compile, {pc, compile}},
   {clean, {pc, clean}}
  ]
 }
]
}.
